package com.tju.eduservice.controller;

import com.tju.Result;
import org.springframework.web.bind.annotation.*;



@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {
    //用户登录
    @PostMapping("login")
    public Result Login(){
        System.out.println("===============");
        return Result.ok().data("token","admin");
    }

    //用户信息
    @GetMapping("info")
    public Result info(){
        return Result.ok().data("roles","admin").data("name","小耿")
                .data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201410%2F27%2F20141027204943_nxAkY.gif&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1640500475&t=07141d6b53d937f8bd6350da322c8c01");
    }
}
